package com.java.excend.test_1;

/**
 * @author luzhikun
 * @date 2020/12/5- 19:16
 */
public class Circle1 {
    private double radius;

    public Circle1() {
        this.radius = 1;
    }

    public Circle1(double radius) {

        this.radius = radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }

    public double getRadius() {
        return radius;
    }

    //获取圆的面积
    public double area() {
        double area = radius * radius * 3.14;
        return area;
    }

}
